import BasicLayout from '@/components/layout/BasicLayout/index.vue';

export const basicRoutes = [
  {
    path: '/task',
    name: 'task',
    component: () => import('@/views/task/index.vue'),
    title: '任务管理',
    icon: 'el-icon-goods',
  },
];

const routes = [
  {
    path: '/',
    name: 'home',
    redirect: '/task',
  },
  {
    path: '/',
    name: 'basic',
    redirect: '/home',
    component: BasicLayout,
    children: basicRoutes,
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login/index.vue'),
    meta: {
      title: '登录',
    },
  },
];

export default routes;
